package com.iengoo.inductionms.ctrl.rest;

import com.iengoo.inductionms.entity.Profession;
import com.iengoo.inductionms.service.ProfessionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Author:huermao
 **/
@RestController
@RequestMapping("/profession")
public class ProfessionController {
    @Autowired
    private ProfessionService professionService;
    @GetMapping
    public List<Profession> getProfession() {
        List<Profession> professionList = professionService.queryAll();
        return professionList;
    }
}
